import yaml,yagmail
#读取yaml文件
def get_yaml():
    with open(r'D:\gao62212a\mymonthwebmoni\tools\ddt.yaml', 'r', encoding='utf-8') as f:
        return yaml.safe_load(f)


#发送邮件
def get_email(filename):
    send=yagmail.SMTP('1441688225@qq.com','subvcobnwlujggee','smtp.qq.com')
    send.send('1441688225@qq.com','接口和web自动化测试',contents=filename)


